package org.tang.springcloudvv.cxf;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * <p><em>Created on 2021/12/5 9:04 上午</em></p>
 *
 * @author fuzhongtang
 * @since 1.0.1
 */
@ServletComponentScan
@EnableAspectJAutoProxy(proxyTargetClass=false)
@EnableTransactionManagement
@EnableScheduling
@EnableDiscoveryClient
@EnableFeignClients
@EnableAutoConfiguration
@MapperScan(value = {VvWebserviceCxfApplication.BASE_MAPPER_PATH })
@ComponentScan(basePackages={"org.tang.springcloudvv.*"}) //springboot默认不扫描外部jar的组件。
@SpringBootApplication
public class VvWebserviceCxfApplication {

    public static final String BASE_MAPPER_PATH = "org.tang.springcloudvv.persistence.base.mapper";

    public static void main(String[] args) {
        SpringApplication.run(VvWebserviceCxfApplication.class, args);
    }
}
